﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace ELooker.utils
{
    /// <summary>
    /// 日之类
    /// </summary>
    class UtilsLogger
    {
        public static void trace(params Object[] values)
        {
            int len = values.Length;
            for (int i = 0; i < len; ++i)
            {
                if(values[i]!=null)
                    Console.WriteLine(values[i].ToString());
                else
                    Console.WriteLine("object null");
            }
            
        }

        public static void init()
        {
            AllocConsole();
        }

        [DllImport("Kernel32.dll")]
        static extern bool AllocConsole();
        [DllImport("Kernel32.dll")]
        static extern bool FreeConsole();

    }
}
